/*
 * @Author: Li Zengkun
 * @Date: 2022-09-12 19:34:44
 * @LastEditors: Li Zengkun
 * @LastEditTime: 2022-09-13 21:12:04
 * @Description: 
 */
import axios from 'axios'

// 删除指定id的公告
const remove = (data) => axios.post(`/notice/remove`, data)

// 添加新的公告
const release = (data) => axios.post(`/notice/release`, data)

// 编辑指定id公告
const edit = (data) => axios.post(`/notice/edit`, data)

// 置顶 / 取消置顶公告
const stick = (data) => axios.post(`/notice/stick`, data)

// 获取所有公告列表
const list = (params) => axios.get(`/notice/list`, { params })

// 获取指定id的公告详情
const detail = (params) => axios.get(`/notice/detail`, { params })

export default {
    remove,
    release,
    edit,
    stick,
    list,
    detail
}